<template>
  <div class="not-found-page">
    <div class="error-desc">找不到页面</div>
    <div class="error-handle">
      <RouterLink to="/">
        <ElButton size="large" type="primary">返回首页</ElButton>
      </RouterLink>
      <ElButton class="error-btn" size="large" type="primary" @click="goBack">返回上一页</ElButton>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'NotFound',
    methods: {
      goBack() {
        this.$router.go(-1)
      }
    }
  }
</script>

<style lang="scss">
  .not-found-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    background: #f3f3f3;

    .error-code {
      color: #2d8cf0;
      font-weight: bolder;
      font-size: 250px;
      line-height: 1;
    }

    .error-code span {
      color: #00a854;
    }

    .error-desc {
      color: #777;
      font-size: 30px;
    }

    .error-handle {
      margin-top: 30px;
      padding-bottom: 200px;
    }

    .error-btn {
      margin-left: 100px;
    }
  }
</style>
